<?php

class Core_Table_Website_Block extends Kd_Data_Table {

    public function __construct() {
        parent::__construct();
    }

    public function getByCode($code){
        return Kd_Data_Factory::getInsertDcl()
                    ->from($this->getName())
                    ->eq('code', ':code:s')
                    ->addParameter('code', $code)
                    ->load()
                    ->getFirstRow();
    }
}
